//对外暴露路由配置
export const constantRoutes = [
  {
    //登录页面的路由
    path: "/login",
    component: () => import("@/pages/login/index.vue"),
    name: "login", //命名路由
  },
  {
    //登录成功展示数据的路由
    path: "/",
    component: () => import("@/pages/home/index.vue"),
    name: "layout",
  },
  {
    //404页面
    path: "/404",
    component: () => import("@/pages/404/index.vue"),
    name: "404",
  },
  {
    //任意路由重定向到404页面
    path: "/:pathMatch(.*)*",
    redirect: "/404",
    name: "Any",
  },
];
